package com.chat.service;

import com.chat.entry.dto.message.MessageDTO;
import com.chat.entry.po.UserMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chat.result.Result;

/**
 * <p>
 * 用户聊天表 服务类
 * </p>
 *
 * @author author
 * @since 2025-08-21
 */
public interface IUserMessageService extends IService<UserMessage> {

    Result sendMessage(MessageDTO messageDTO);

    Result getUnreadSummary(Integer receiverId);

    Result getMessageList(Integer userId);

    Result queryMessage(Integer userId, Integer friendId, Integer pageNum, Integer pageSize);

    Result queryMessageByContent(Integer userId, Integer friendId, Long messageId, Integer pageSize);

    Result searchMessage(Integer userId, String content);
}
